import java.util.Arrays;

public class Main {
    public static void main(String[] args) {
        Solution s = new Solution();
        int[] nums = {10,26,30,31,47,60};
        int target = 40;
        int[] res = s.SumEqualsS(nums, target);
        System.out.println(Arrays.toString(res));
    }
}